﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <block name="block-meta"></block>
    <block name="title"><title>网站标题</title></block>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!--<link rel="bookmark" type="image/x-icon" href="__Public__/themes/images/favicon.ico" />-->
    <link rel="shortcut icon" href="__Public__/themes/images/favicon.ico" />
    <link rel="icon" href="__Public__/themes/images/favicon.ico" />

    <link rel="stylesheet" href="__Public__/js/libraries/bootstrap/bootstrap.min.css" />
    <link type="text/css" href="__Public__/themes/css/main.min.css" rel="stylesheet" />
    <link href="__Public__/themes/css/site.css" rel="stylesheet" />
    <script type="text/javascript" src="__Public__/js/require.js"></script>
    <script type="text/javascript" src="__Public__/js/app.js"></script>

    <!--[if lt IE 9]>
    <script src="__Public__/js/html5shiv.min.js"></script>
    <script src="__Public__/js/respond.min.js"></script>
    <![endif]-->

    <block name="header_styles"></block>
</head>
<body>

    <block name="header">
        <include file="Public:header" />
    </block>
    <block name="Banner">

    </block>

    <div class="main-wrapper">
        <div class="container">
            <block name="main"></block>
        </div>
    </div>
    <footer>
        <block name="bottom_wrap"></block>
        <include file="Public:footer" />
    </footer>
    <script type="text/x-template" id="tplLoginBox">
        <div class="login-box">
            <div class="panel panel-default">
                <div class="panel-body text-left">
                    <i class="fa fa-caret-up"></i>
                    <form action="/" method="post" id="formHeaderLogin">
                        <div class="form-group">
                            <input type="text" id="head_email" class="form-control" name="email" data-val="true" data-val-required="请输入邮箱地址" placeholder="输入邮箱地址" />
                            <span data-valmsg-for="email" data-valmsg-replace="true"></span>
                        </div>
                        <div class="form-group">
                            <input type="password" id="head_pwd" class="form-control" name="pwd" data-val="true" data-val-required="请输入密码" placeholder="输入密码" />
                            <span data-valmsg-for="pwd" data-valmsg-replace="true"></span>
                        </div>
                        <div class="text-center">
                            <p id="head_notice" style="display: none;color: #FF0000;"></p>
                            <div class="form-group">
                                <label class="checkbox-inline">
                                    <input type="checkbox" id="head_remember" name="head_remember" /> 一周内不用登陆
                                </label>
                                &nbsp;&nbsp;&nbsp;
                                <a href="{:U('Login/resetpwd1@'.getDomain())}" class="forgot-link">忘记密码?</a>
                            </div>
                            <div class="">
                                <button type="submit" class="btn btn-success lg">登录</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </script>


    <script type="text/javascript">
        require(["jquery",
            "bootstrap",
            "modules/base",
            "modules/login",
            "modules/message", "libraries/jquery.lazyload.min"],
            function ($, boot, base, login, message) {
                base.init();

                login.initLoginBox({
                    templateId: "#tplLoginBox",
                    postLink: "{:U('Login/login_ajax@'.getDomain(), '', '')}"
                });

                $("img.lazy").lazyload();
            });

      

    </script>

    <block name="bottom"></block>
    <block name="footer_scripts"></block>
</body>
</html>
